package vue;

import javax.swing.*;
import java.awt.*;
import java.io.*;

/**
 * @author Yassine Badih
 * @author Walter Dacosta
 */

@SuppressWarnings("serial")
public class AfficheArbreDecision extends JPanel
{
	public static final String AfficheArbreDecision = null;
	static JEditorPane grandeZone;
	
	public AfficheArbreDecision() throws IOException
	{

		JScrollPane texteAsc;
		grandeZone = new JEditorPane("Affichage de l'arbre de decision", "");
		grandeZone.setEditable(false);
		texteAsc = new JScrollPane(grandeZone);
		texteAsc.setPreferredSize(new Dimension(600, 300));
		add(texteAsc, BorderLayout.CENTER);
	}

	public void rajouterTexte(String texte)
	{
		grandeZone.setText((grandeZone.getText().concat("\n")).concat(texte));
	}

	public static void reset()
	{
		System.out.println("reset de l'affichage");
		grandeZone.setText("");
	}
}